#ifndef ABSTRACTLISTITEM_H
#define ABSTRACTLISTITEM_H

#include <QObject>

class AbstractListItem : public QObject {
    Q_OBJECT
    Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
    Q_PROPERTY(QString color READ color WRITE setColor NOTIFY colorChanged)
    Q_PROPERTY(QString number READ number WRITE setNumber NOTIFY numberChanged)

    public:
    AbstractListItem();
    QString name() const;
    QString color() const;
    QString number() const;

    public slots:
    void setName(QString name);
    void setColor(QString color);
    void setNumber(QString number);
    void show1(const QString& string);

    signals:
    void nameChanged(QString name);
    void colorChanged(QString color);
    void numberChanged(QString number);

    private:
    QString m_name;

    QString m_color;

    QString m_number;
};

#endif // ABSTRACTLISTITEM_H
